<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>咨客_首部</title>
		<link href="<c:url value="/resources/css/style.css" />" rel="stylesheet" type="text/css">
		<link href="<c:url value="/resources/css/default/easyui.css" />" rel="stylesheet" type="text/css">
		<link href="<c:url value="/resources/css/icon.css" />" rel="stylesheet" type="text/css">
		<script type="text/javascript" src="<c:url value="/resources/js/jquery-1.7.2.js" />"></script>
		<script type="text/javascript" src="<c:url value="/resources/js/jquery.jclock.js" />"></script>
		<script type="text/javascript" src="<c:url value="/resources/js/jquery.easyui.min.js" />"></script>
		<script type="text/javascript" src="<c:url value="/resources/js/easyui-lang-zh_CN.js" />"></script>
		<script type="text/javascript">
			$(function(){
				$('#businessDay').jclock({showDate:true, withDate:true});
				$('#systemTime').jclock();
				
			});
			
			function onForward(url){
				location.href = url;
			}
			
			function onLogout(){
				$.messager.confirm('退出确认', '您确定要退出吗?', function(r){
					if (r){						
						$("#logoutForm").submit();
					}
				});
			}
			
			function onBusinessDay(){
				$.messager.confirm('设置营业日', '您确定设置营业日吗?', function(r){
					if (r){
						$.ajax({
							url:'../consultBilling/setBusinessDay',
							data:{},
							type:'post',
							dataType:'text',
							async:false,
							cache:false,
							success:function(data){
								$.messager.alert('操作结果',data);
							}
						});
					}
				});
			}
		</script>
	</head>
	
	<body>
		<div style="padding:5px;border:1px solid #ddd;width:1200px;">
			<a href="#" onclick="onForward('${pageContext.request.contextPath}/consultToken/tokenList')" class="easyui-linkbutton" data-options="plain:true">手牌列表 F4</a>
			<a href="#" onclick="onForward('${pageContext.request.contextPath}/consultRoom/roomList')" class="easyui-linkbutton" data-options="plain:true">房间列表 F5</a>
			<a href="#" onclick="onForward('${pageContext.request.contextPath}/consultToken/initOpenToken')" class="easyui-linkbutton" data-options="plain:true">开手牌 F6</a>
			<a href="#" onclick="onForward('${pageContext.request.contextPath}/consultToken/initExchangeToken')" class="easyui-linkbutton" data-options="plain:true">换手牌 F7</a>
			<a href="#" onclick="onForward('${pageContext.request.contextPath}/consultRoom/initExchangeRoom')" class="easyui-linkbutton" data-options="plain:true">换房间 </a>
			<a href="#" onclick="onForward('${pageContext.request.contextPath}/consultBilling/initRemoveOrder')" class="easyui-linkbutton" data-options="plain:true">撤单 F8</a>
			<a href="#" onclick="onForward('${pageContext.request.contextPath}/consultToken/initRelateToken')"  class="easyui-linkbutton" data-options="plain:true">关联手牌 F9</a>
			<a href="#" onclick="onForward('${pageContext.request.contextPath}/consultRoom/initRelateRoom')"  class="easyui-linkbutton" data-options="plain:true">关联房间</a>
			<a href="#" onclick="onForward('${pageContext.request.contextPath}/consultBilling/initConsume')" class="easyui-linkbutton" data-options="plain:true">消费 F10</a>
			<a href="#" onclick="onForward('${pageContext.request.contextPath}/consultBilling/initRelateBilling')" class="easyui-linkbutton" data-options="plain:true">关联帐单</a>
			<a href="#" onclick="onForward('${pageContext.request.contextPath}/consultBilling/initQueryBilling')"  class="easyui-linkbutton" data-options="plain:true">帐单查询 F11</a>
			<a href="#" onclick="onForward('${pageContext.request.contextPath}/consultRoom/initBookingRoom')"  class="easyui-linkbutton" data-options="plain:true">预订房间</a>
			<a href="#" onclick="onForward('${pageContext.request.contextPath}/consultBilling/initPay')"  class="easyui-linkbutton" data-options="plain:true">结帐</a>
			<a href="#" onclick="onForward('${pageContext.request.contextPath}/consultBilling/initInvoice')"  class="easyui-linkbutton" data-options="plain:true">发票</a>
			<a href="#" onclick="onBusinessDay()"  class="easyui-linkbutton" data-options="plain:true">设置营业日</a>
			<a href="#" onclick="onLogout()"  class="easyui-linkbutton" data-options="plain:true">退出</a>
		</div>
		
		<div style="margin-top: 10px;margin-bottom: 10px;padding:5px;border:1px solid #ddd">
			<span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;">&nbsp; </span>
			<span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;">登录用户工号：${sysAccount.staff_no}  
				营业日： <span id="businessDay"></span>&nbsp;
				班次：${sysAccount.classes}&nbsp;
			          系统时间：<span id="systemTime"></span>
			</span>
		</div>
		
		<form name="logoutForm" id="logoutForm" action="../login/logout" method="post"></form>
	</body>
</html>